﻿using System;
using System.Xml.Serialization;

namespace DuLabs.Workflow.Common.Definition
{
    [Serializable]
    public class ActivityElement
    {
        [XmlAttribute("Code")]
        public string ActivityCode { get; set; }

        [XmlAttribute("Name")]
        public string ActivityName { get; set; }

        [XmlAttribute("Enabled")]
        public bool Enabled { get; set; }

        [XmlElement("UserSource")]
        public UserSourceElement UserSourceElement { get; set; }

        public ActivityElement()
        {
            this.Enabled = true;
            this.UserSourceElement = new UserSourceElement();
        }
    }
}
